package com.fm.parser.excel;

import com.fm.structure.base.Pair;

public class ExcelCellError extends RuntimeException {
	private String errorInfo;
	private Pair<Integer, String> position;

	ExcelCellError(String errorInfo, Pair<Integer, String> position) {
		super("(" + position.getLeft() + "," + position.getRight() + ") find " + errorInfo);
		this.errorInfo = errorInfo;
		this.position = position;
	}

	public String getErrorInfo() {
		return errorInfo;
	}

	public Pair<Integer, String> getPosition() {
		return position;
	}
}
